import http from "@/utils/http";
/**
 * @description: 获取活动列表
 * @param {*} data
 */
export const activeList = (data) => {
  return http({
    url: "/backend/Active/list",
    method: "POST",
    data,
  });
};
/**
 * @description: 获取活动类型列表
 * @param {*} data
 */
export const getActiveTypes = (data) => {
  return http({
    url: "/backend/Active/getActiveTypes",
    method: "POST",
    data,
  });
};
/**
 * @description: 新增/编辑活动
 * @param {*} data
 */
export const saveActive = (data) => {
  return http({
    url: "/backend/Active/saveData",
    method: "POST",
    data,
  });
};

/**
 * @description: 活动详情
 * @param {*} data
 */
export const activeDetail = (data) => {
  return http({
    url: "/backend/active/detail",
    method: "POST",
    data,
  });
};

/**
 * @description: 活动上下架
 * @param {*} data
 * status 状态 1 上架 2 下架
 */
export const activeUpStatus = (data) => {
  return http({
    url: "/backend/Active/upStatus",
    method: "POST",
    data,
  });
};

/**
 * @description: 取消/发布活动
 * @param {*} data
 */
export const activeCancel = (data) => {
  return http({
    url: "/backend/Active/cancel",
    method: "POST",
    data,
  });
};
/**
 * @description: 删除活动
 * @param {*} data
 */
export const delActiveCancel = (data) => {
  return http({
    url: "/backend/Active/_del",
    method: "POST",
    data,
  });
};
/**
 * @description: 活动报名/评价列表
 * @param {*} data
 */
export const getActiveSignOrEvaluateList = (data) => {
  return http({
    url: "/backend/Active/getActiveSignOrEvaluateList",
    method: "POST",
    data,
  });
};

/**
 * @description: 获取用户列表
 * @param {*} data
 */
export const userList = (data) => {
  return http({
    url: "/backend/User/list",
    method: "POST",
    data,
  });
};

/**
 * @description: 报名活动
 * @param {*} data
 */
export const signUp = (data) => {
  return http({
    url: "/backend/Active/signUp",
    method: "POST",
    data,
  });
};

/**
 * @description: 导出报名列表
 * @param {*} data
 */
export const exportUserExcel = (data) => {
  return http({
    url: "/backend/Active/exportUserExcel",
    method: "POST",
    data,
  });
};

/**
 * @description: 删除活动人员
 * @param {*} data
 */
export const delActivePerson = (data) => {
  return http({
    url: "/backend/Active/delActivePerson",
    method: "POST",
    data,
  });
};
/**
 * @description: 删除活动评价
 * @param {*} data
 */
export const delActiveComment = (data) => {
  return http({
    url: "/backend/Active/delActiveComment",
    method: "POST",
    data,
  });
};
/**
 * @description: 后台主动签到
 * @param {*} data
 */
export const signDns = (data) => {
  return http({
    url: "/backend/Active/signDns",
    method: "POST",
    data,
  });
};
